package com.loongtech.bi.entity.core;

import java.io.Serializable;

public class KeyDateAndUserId implements Serializable
{
	// 日期标识
	private String				date;
	// 账号标识
	private String				userId;
	private static final long	serialVersionUID	= 1L;

	public KeyDateAndUserId()
	{
	}

	public KeyDateAndUserId(String date, String userId)
	{
		this.date = date;
		this.userId = userId;
	}

	public String getDate()
	{
		return date;
	}

	public void setDate(String date)
	{
		this.date = date;
	}

	public String getRoleId()
	{
		return userId;
	}

	public void setRoleId(String roleId)
	{
		this.userId = roleId;
	}

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((date == null) ? 0 : date.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if (obj == null || getClass() != obj.getClass())
		{
			return false;
		}
		final KeyDateAndUserId o = (KeyDateAndUserId) obj;
		if (date == null && o.date != null || null != date && !date.equals(o.date))
		{
			return false;
		}
		if (userId == null && o.userId != null || null != userId && !userId.equals(o.userId))
		{
			return false;
		}
		return true;
	}

	@Override
	public String toString()
	{
		return "KeyDateAndUserId [date=" + date + ", userId=" + userId + "]";
	}
}
